package com.edu.service.shop;


import com.edu.entity.shop.Comments;
import com.edu.entity.shop.Video;
import com.edu.entity.user.SysUser;
import org.springframework.stereotype.Component;

import java.security.Principal;
import java.util.Date;
import java.util.List;

@Component
public interface VideoService {

    List<Video> findListByName(String brief,Integer page,Integer size);
    Integer findCount(String brief);

    SysUser findUserByPrin(String username);
    void insertCollect(Integer id,Integer prinId, Date date);

    List<Video> findVideoRecent();
    List<Video> findVideoMost();

    Video findVideoById(Integer id);
    List<Video> findListByTag(String tag);
    List<Video> findListByTag2(String tag);

    Integer findPid(Integer pid);
    List<Video> findVideoPid(Integer id);
    List<Comments> findCommentsById(Integer id);

    Integer findGraAndSubCount(String grade,String subject);
    List<Video> findGraAndSubListByName(String grade,String subject,Integer page,Integer size);
    List<Video> pageList();
    Video top(int id);
}
